﻿export class Configuration {

    private static _getServiceUrl() {
        if (false) {
            return "https://kendo:8943/MovieTicket.WebApi/api/";
        } else {
            return "http://kendo:8980/MovieTicket.WebApi/api/";
        }
    }

    private static _serviceUrlInternal: string = Configuration._getServiceUrl();

    static serviceUrl: string = Configuration._serviceUrlInternal;
    static accoutUrl: string = Configuration._serviceUrlInternal + "Account/";
    static getMovieListUrl: string = Configuration._serviceUrlInternal + "Movies/GetMovieList/";
    static getTheaterListForMovieUrl: string = Configuration._serviceUrlInternal + "Theater/Get/";
    static getTrailersUrl: string = Configuration._serviceUrlInternal + "Movies/GetTrailers/";
    static purchaseTicketsUrl: string = Configuration._serviceUrlInternal + "Tickets"
}    
